﻿/***********************************************************************************************
 * ConfigItemReceiver.cs
 * List Item Events for the ConfigurationItems List.
 * Used in order to the keep the configuration helper cache to date.
 * Jaime Alberto Jaramillo (jjaramillo@informatica-tecnologia.com)
 * Created: 13/02/2010
 * Updated: 14/02/2010
 **********************************************************************************************/

using Microsoft.SharePoint;
using MS.InformationManagement.Support;

namespace MS.InformationManagement.Documents.ObjectDef.ItemReceivers.ConfigItemReceiver
{
    /// <summary>
    /// List Item Events for the ConfigurationItems List.
    /// Used in order to the keep the configuration helper cache to date.
    /// </summary>
    public class ConfigItemReceiver : SPItemEventReceiver
    {
       /// <summary>
       /// An item was added.
       /// </summary>
       public override void ItemAdded(SPItemEventProperties properties)
       {
           base.ItemAdded(properties);
           //ConfigurationHelper.GetInstance().ReloadCache();
       }

       /// <summary>
       /// An item was updated.
       /// </summary>
       public override void ItemUpdated(SPItemEventProperties properties)
       {
           base.ItemUpdated(properties);
           //ConfigurationHelper.GetInstance().ReloadCache();
       }

       /// <summary>
       /// An item was deleted.
       /// </summary>
       public override void ItemDeleted(SPItemEventProperties properties)
       {
           base.ItemDeleted(properties);
           //ConfigurationHelper.GetInstance().ReloadCache();
       }


    }
}
